package com.sunlg.smarthome.contract;

import com.sunlg.smarthome.base.IBasePresenter;
import com.sunlg.smarthome.base.IBaseView;
import com.sunlg.smarthome.data.entity.Light;

import java.util.List;

/**
 * Created by sunlg on 2017/3/8.
 */

public interface LightContract {

    interface View extends IBaseView {
        void takeOnSuccess();
        void takeOffSuccess();
    }

    interface LightListView extends View {
        void showNoneLightText();
        void hideNoneLightText();
        void showLightList(List<Light> lightList);
    }

    interface Presenter extends IBasePresenter<View> {
        void addLight(Light light);
        void deleteLight(int lightId);
        void takeOn(int lightId, int level);
        void takeOff(int lightId);
        void loadAll();
    }
}
